package feizhou.untils.tools.signature;


import feizhou.untils.tools.MD5Util;

import java.util.List;

public class MD5Signature implements Signature {
    @Override
    public String generate(List<SignatureParam> signatureParams) {

        StringBuilder sb = new StringBuilder();
        for (SignatureParam signatureParam : signatureParams) {
            sb.append(signatureParam.getValue());
        }
        return MD5Util.toMD5Str(sb.toString());
    }
}
